package com.kly.cashmall.framework.mvp;

import android.view.View;

import androidx.annotation.Nullable;

public abstract class BaseViewPresenter<T extends Viewer> extends BasePresenter<T> {

  private View decorView;

  public BaseViewPresenter(T viewer) {
    super(viewer);
  }

  public @Nullable View getDecorView() {
    return decorView;
  }

  @Override public void createdView(View view) {
    this.decorView = view;
  }

  @Override public void destroy() {
    super.destroy();
    decorView = null;
  }

  @Override public void resume() {
    //onResume
  }

  @Override public void pause() {
    //onPause
  }
}
